.class public Lcom/xingbook/ui/InsetTopicsView;
.super Landroid/widget/RelativeLayout;


# instance fields
.field private a:F

.field private b:Landroid/view/View;

.field private c:Landroid/view/View;

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/LinearLayout;

.field private h:Ljava/util/ArrayList;

.field private i:Ljava/util/ArrayList;

.field private j:Lcom/xingbook/ui/m;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/high16 v0, 0x3f80

    iput v0, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    new-instance v0, Lcom/xingbook/ui/m;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/m;-><init>(Lcom/xingbook/ui/InsetTopicsView;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->j:Lcom/xingbook/ui/m;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/high16 v0, 0x3f80

    iput v0, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    new-instance v0, Lcom/xingbook/ui/m;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/m;-><init>(Lcom/xingbook/ui/InsetTopicsView;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->j:Lcom/xingbook/ui/m;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/high16 v0, 0x3f80

    iput v0, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    new-instance v0, Lcom/xingbook/ui/m;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/m;-><init>(Lcom/xingbook/ui/InsetTopicsView;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->j:Lcom/xingbook/ui/m;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/InsetTopicsView;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a(F)V
    .locals 7

    const/high16 v6, 0x41c8

    const/high16 v5, 0x420c

    const v4, 0x44398000

    const/4 v3, 0x0

    iget v0, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    cmpl-float v0, v0, p1

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    iput p1, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->c:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    mul-float v1, v4, p1

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->e:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    mul-float v1, v4, p1

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->d:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    mul-float v1, v4, p1

    const/high16 v2, 0x3f80

    sub-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const/high16 v1, 0x41b0

    mul-float/2addr v1, p1

    float-to-int v1, v1

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    mul-float v1, v5, p1

    invoke-virtual {v0, v3, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    mul-float v1, v4, p1

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    const/high16 v1, 0x4284

    mul-float/2addr v1, p1

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->height:I

    move v2, v3

    :goto_0
    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->i:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/n;

    iget-object v1, v0, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout$LayoutParams;

    mul-float v4, v6, p1

    float-to-int v4, v4

    iput v4, v1, Landroid/widget/RelativeLayout$LayoutParams;->height:I

    mul-float v4, v6, p1

    float-to-int v4, v4

    iput v4, v1, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    const/high16 v4, 0x4170

    mul-float/2addr v4, p1

    float-to-int v4, v4

    iput v4, v1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v1, v0, Lcom/xingbook/ui/n;->g:Landroid/widget/TextView;

    mul-float v4, v5, p1

    invoke-virtual {v1, v3, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, v0, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    mul-float v4, v5, p1

    invoke-virtual {v1, v3, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, v0, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v4, 0x4234

    mul-float/2addr v4, p1

    float-to-int v4, v4

    iput v4, v1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v1, v0, Lcom/xingbook/ui/n;->e:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v4, 0x4282

    mul-float/2addr v4, p1

    float-to-int v4, v4

    iput v4, v1, Landroid/widget/LinearLayout$LayoutParams;->width:I

    const/high16 v4, 0x428a

    mul-float/2addr v4, p1

    float-to-int v4, v4

    iput v4, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I

    iget-object v0, v0, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    const/high16 v1, 0x41d8

    mul-float/2addr v1, p1

    invoke-virtual {v0, v3, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/xingbook/ui/InsetTopicsView;)Lcom/xingbook/ui/m;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->j:Lcom/xingbook/ui/m;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/util/ArrayList;I)V
    .locals 9

    iput-object p1, p0, Lcom/xingbook/ui/InsetTopicsView;->h:Ljava/util/ArrayList;

    int-to-float v0, p2

    const v1, 0x44398000

    div-float/2addr v0, v1

    iput v0, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->setBackgroundColor(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->i:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/xingbook/ui/InsetTopicsView;->getContext()Landroid/content/Context;

    move-result-object v1

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const/4 v2, 0x0

    const/high16 v3, 0x420c

    iget v4, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v3, v4

    invoke-virtual {v0, v2, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const v2, -0x99999a

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const/16 v2, 0x13

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const/high16 v2, 0x41b0

    iget v3, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v0, v2, v3, v4, v5}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const v2, -0x101011

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    const-string v2, "\u5708\u5b50\u8bdd\u9898"

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const v2, 0x44398000

    iget v3, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/high16 v3, 0x4284

    iget v4, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v2, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->f:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->g:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->g:Landroid/widget/LinearLayout;

    const/4 v2, 0x3

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->g:Landroid/widget/LinearLayout;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOrientation(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v2, 0x1

    const/high16 v3, 0x4284

    iget v4, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    const/4 v4, 0x1

    const/4 v5, 0x1

    invoke-virtual {v0, v2, v3, v4, v5}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    iget-object v2, p0, Lcom/xingbook/ui/InsetTopicsView;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->g:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->addView(Landroid/view/View;)V

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_1

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->e:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->e:Landroid/view/View;

    const v2, -0x181819

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const v2, 0x44398000

    iget v3, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/4 v3, 0x1

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v2, 0x3

    const/4 v3, 0x3

    invoke-virtual {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v2, p0, Lcom/xingbook/ui/InsetTopicsView;->e:Landroid/view/View;

    invoke-virtual {v2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->e:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->b:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->b:Landroid/view/View;

    const v2, -0x181819

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, 0x1

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0x8

    const/4 v3, 0x3

    invoke-virtual {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/4 v2, 0x6

    const/4 v3, 0x3

    invoke-virtual {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v2, p0, Lcom/xingbook/ui/InsetTopicsView;->b:Landroid/view/View;

    invoke-virtual {v2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->b:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->c:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->c:Landroid/view/View;

    const v2, -0x181819

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const v2, 0x44398000

    iget v3, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/4 v3, 0x1

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v2, p0, Lcom/xingbook/ui/InsetTopicsView;->c:Landroid/view/View;

    invoke-virtual {v2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->c:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->d:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->d:Landroid/view/View;

    const v1, -0x181819

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, 0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const v1, 0x44398000

    iget v2, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v1, v2

    const/high16 v2, 0x3f80

    sub-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    const/16 v1, 0x8

    const/4 v2, 0x3

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/4 v1, 0x6

    const/4 v2, 0x3

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/xingbook/ui/InsetTopicsView;->d:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ui/InsetTopicsView;->d:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->addView(Landroid/view/View;)V

    const/4 v0, 0x0

    move v2, v0

    :goto_1
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lt v2, v0, :cond_2

    :cond_0
    return-void

    :cond_1
    new-instance v2, Lcom/xingbook/ui/n;

    invoke-direct {v2, p0}, Lcom/xingbook/ui/n;-><init>(Lcom/xingbook/ui/InsetTopicsView;)V

    iput v0, v2, Lcom/xingbook/ui/n;->h:I

    iget-object v3, p0, Lcom/xingbook/ui/InsetTopicsView;->i:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Landroid/widget/RelativeLayout;

    invoke-direct {v3, v1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v5, -0x1

    const/4 v6, -0x2

    invoke-direct {v4, v5, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setId(I)V

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v3, v2}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v4, p0, Lcom/xingbook/ui/InsetTopicsView;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/RelativeLayout;

    invoke-direct {v4, v1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v6, -0x2

    const/4 v7, -0x2

    invoke-direct {v5, v6, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/widget/TextView;

    invoke-direct {v5, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v5, v2, Lcom/xingbook/ui/n;->g:Landroid/widget/TextView;

    iget-object v5, v2, Lcom/xingbook/ui/n;->g:Landroid/widget/TextView;

    const/4 v6, 0x0

    const/high16 v7, 0x420c

    iget v8, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v7, v8

    invoke-virtual {v5, v6, v7}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v6, -0x2

    const/4 v7, -0x2

    invoke-direct {v5, v6, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->g:Landroid/widget/TextView;

    const-string v6, "   "

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->g:Landroid/widget/TextView;

    invoke-virtual {v4, v5}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/widget/ImageView;

    invoke-direct {v5, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v5, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    iget-object v5, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    const/4 v6, 0x4

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setId(I)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    sget-object v6, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    sget-object v6, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v6, 0x41c8

    iget v7, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v6, v7

    float-to-int v6, v6

    const/high16 v7, 0x41c8

    iget v8, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v7, v8

    float-to-int v7, v7

    invoke-direct {v5, v6, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v6, 0x4170

    iget v7, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v6, v7

    float-to-int v6, v6

    iput v6, v5, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    const/16 v6, 0xf

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v6, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    invoke-virtual {v6, v5}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f0201d4

    invoke-static {v6, v7}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->a:Landroid/widget/ImageView;

    invoke-virtual {v4, v5}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, v2, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    iget-object v4, v2, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    const/4 v5, 0x0

    const/high16 v6, 0x420c

    iget v7, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v6, v7

    invoke-virtual {v4, v5, v6}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    const v5, -0x666667

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v5, -0x2

    const/4 v6, -0x2

    invoke-direct {v4, v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v5, 0x4234

    iget v6, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v5, v6

    float-to-int v5, v5

    iput v5, v4, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v5, v2, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    const-string v5, "\u6b63\u5728\u52a0\u8f7d\u00b7\u00b7\u00b7"

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->b:Landroid/widget/TextView;

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/LinearLayout;

    invoke-direct {v4, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    const/4 v5, 0x2

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setId(I)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    const/16 v5, 0x11

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v5, -0x1

    const/4 v6, -0x2

    invoke-direct {v4, v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v5, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v4}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v3, Landroid/widget/ImageView;

    invoke-direct {v3, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v3, v2, Lcom/xingbook/ui/n;->e:Landroid/widget/ImageView;

    iget-object v3, v2, Lcom/xingbook/ui/n;->e:Landroid/widget/ImageView;

    sget-object v4, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v4, 0x4282

    iget v5, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v4, v5

    float-to-int v4, v4

    const/high16 v5, 0x428a

    iget v6, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v5, v6

    float-to-int v5, v5

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->e:Landroid/widget/ImageView;

    invoke-virtual {v4, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v3, v2, Lcom/xingbook/ui/n;->e:Landroid/widget/ImageView;

    const v4, 0x7f020240

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v3, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    iget-object v4, v2, Lcom/xingbook/ui/n;->e:Landroid/widget/ImageView;

    invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v3, Landroid/widget/TextView;

    invoke-direct {v3, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v3, v2, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    iget-object v3, v2, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    const/4 v4, 0x0

    const/high16 v5, 0x41d8

    iget v6, p0, Lcom/xingbook/ui/InsetTopicsView;->a:F

    mul-float/2addr v5, v6

    invoke-virtual {v3, v4, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v3, v2, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    const v4, -0x99999a

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v4, -0x2

    const/4 v5, -0x2

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v4, v2, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v3, v2, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    const-string v4, "\u8d44\u6e90\u52a0\u8f7d\u5931\u8d25\uff0c\u70b9\u51fb\u91cd\u65b0\u52a0\u8f7d"

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v3, v2, Lcom/xingbook/ui/n;->c:Landroid/widget/LinearLayout;

    iget-object v2, v2, Lcom/xingbook/ui/n;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0

    :cond_2
    invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/k;

    iget-object v1, p0, Lcom/xingbook/ui/InsetTopicsView;->i:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/xingbook/ui/n;

    if-eqz v0, :cond_0

    if-eqz v1, :cond_0

    invoke-virtual {v0, v1}, Lcom/xingbook/b/k;->a(Lcom/xingbook/b/m;)V

    invoke-virtual {v0}, Lcom/xingbook/b/k;->a()Z

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto/16 :goto_1
.end method

.method protected onSizeChanged(IIII)V
    .locals 2

    int-to-float v0, p1

    const v1, 0x44398000

    div-float/2addr v0, v1

    invoke-direct {p0, v0}, Lcom/xingbook/ui/InsetTopicsView;->a(F)V

    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/RelativeLayout;->onSizeChanged(IIII)V

    return-void
.end method
